switch: Remove .slider from slider gadget
authorTimm Bäder <mail@baedert.org>
Wed, 4 May 2016 16:55:33 +0000 (18:55 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 4 May 2016 16:55:33 +0000 (18:55 +0200)
As the documentation states, neither the switch nor the slider gadget
should be using any style classes.

gtk/gtkswitch.c

index 5ab35c7898e2891fd4eddd6ed993786c704e89f6..b09b3b42105a4cf1a4a546a61a8321fbd82b53b6 100644 (file)
@@ -1059,7 +1059,6 @@ gtk_switch_init (GtkSwitch *self)
                                                    gtk_switch_render_slider,
                                                    NULL,
                                                    NULL);
-  gtk_css_gadget_add_class (priv->slider_gadget, GTK_STYLE_CLASS_SLIDER);
 
   gesture = gtk_gesture_multi_press_new (GTK_WIDGET (self));
   gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (gesture), FALSE);